export const constantRoute = [
    {
        path: '/',
        component: () => import('@/views/index.vue'),
        name: 'layout',
        meta: {
            title: 'layout', //菜单标题
            hidden: true, //代表路由标题在菜单中是否隐藏  true:隐藏 false:不隐藏
            icon: 'Promotion', //菜单文字左侧的图标,支持element-plus全部图标
        },
        children: [
            {
                path: '/globalEventBus',
                component: () => import('@/views/globalEventBus/index.vue'),
                meta: {
                    title: '全局事件总线',
                },
            },
            {
                path: '/bidirectionalBinding',
                component: () => import('@/views/bidirectionalBinding/index.vue'),
                meta: {
                    title: '双向绑定原理',
                },
            },
            {
                path: '/piniaDemo',
                component: () => import('@/views/piniaDemo/index.vue'),
                meta: {
                    title: 'piniaDemo',
                },
            },
            {
                path: '/slotDemo',
                component: () => import('@/views/slotDemo/index.vue'),
                meta: {
                    title: 'slotDemo',
                },
            },
        ]
    }
]
